package com.li.test.model1;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Model1Controller {
    @Autowired
    RabbitTemplate rabbitTemplate;
    @GetMapping("/model1")
    public void model1(){
        rabbitTemplate.convertAndSend("model1","测试一个生产者对应多个消费者！");
    }
}
